package com.cys.markdown.doc.admin.controller.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 日志控制台
 * Created by caiyushen on 2018/09/28.
 */
@Controller
@RequestMapping("/admin/log")
@Transactional
public class LogController {


    private Logger logger = LoggerFactory.getLogger(LogController.class);

    /**
     * 跳转到日志信息
     */
    @RequestMapping(value = "/toInfo", method = RequestMethod.GET)
//    @RequiresPermissions("log:toInfo")
    public String toInfo() {
        logger.info("method[toLogInfo] ");
        return "log/info";
    }

}
